
import React, { PureComponent } from 'react';
import store from '../../store';

export default class index extends PureComponent {

    add=()=>{
        store.dispatch({
            type:"ADDCOUNT"
        });
    }

  render() {
    return (
      <div>
        <p>count:{store.getState().count}</p>
        <input type="button" value=" + " onClick={this.add} />
      </div>
    )
  }
}
